package cn.cmdr.controller;

import cn.cmdr.service.JournalService;
import cn.cmdr.vo.BrandVo;
import cn.cmdr.vo.JournalVo;
import cn.cmdr.vo.ResultVo;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/jur/journal")
public class JournalController {
    @Resource
    private JournalService journalService;
    @PostMapping("/list/{pageSize}/{pageNo}")
    public ResultVo getList(@PathVariable Integer pageSize, @PathVariable Integer pageNo, @RequestBody JournalVo journalVo){
        return ResultVo.sucess(journalService.getJournalList(pageNo,pageSize,journalVo));
    }
    @PostMapping("/menuList")
    public ResultVo getMenuList(){
        return ResultVo.sucess(journalService.getMenuList());
    }
}
